Skip to content

Conversation

@TuroYT
Copy link
Contributor

@TuroYT TuroYT commented Oct 30, 2025

Scripts wich are clearly AI generated and not further revied by the Author of this PR (in terms of Coding Standards and Script Layout) may be closed without review.

✍️ Description

🔗 Related PR / Issue

Link: #

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No breaking changes – Existing functionality remains intact.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔍 Code & Security Review (X in brackets)

  • Follows Code_Audit.md & CONTRIBUTING.md guidelines
  • Uses correct script structure (AppName.sh, AppName-install.sh, AppName.json)
  • No hardcoded credentials

📋 Additional Information (optional)

Copy link
Member

@michelroegl-brunner michelroegl-brunner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beofre i review that further:
You missed some coding standards we keep around here, but overall it dose not look to bad. First look in the latest merged Scripts for exampled. Second: We habe helper functions in tools.func to set up Node.js and Postgress.
3. We dont do git pulls, just downloads of releases. Ther also exists a helper function in tools.func.

Also please remove any comments, also you can then remove the jq check in the update part.
You can ping me when you did the changes, then i will have a deeper look into this pr.

TuroYT and others added 2 commits October 31, 2025 09:37
Co-authored-by: Michel Roegl-Brunner <[email protected]>
Co-authored-by: Michel Roegl-Brunner <[email protected]>
msg_ok "Installed SnowShare dependencies"

msg_info "Creating Environment Configuration"
cat <<EOF >/opt/snowshare/.env
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to /opt/snowshare.env if possible

Copy link
Member

@CrazyWolf13 CrazyWolf13 Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still applies (move to /opt/snowshare.env)

Copy link
Member

@CrazyWolf13 CrazyWolf13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks already pretty good, just some smaller things

@TuroYT
Copy link
Contributor Author

TuroYT commented Oct 31, 2025

i think its ok

@TuroYT TuroYT requested a review from CrazyWolf13 November 3, 2025 12:02
Copy link
Member

@CrazyWolf13 CrazyWolf13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some cosmetic things then good to me

msg_ok "Installed SnowShare dependencies"

msg_info "Creating Environment Configuration"
cat <<EOF >/opt/snowshare/.env
Copy link
Member

@CrazyWolf13 CrazyWolf13 Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still applies (move to /opt/snowshare.env)

@TuroYT TuroYT requested a review from CrazyWolf13 November 3, 2025 14:57
Copy link
Member

@CrazyWolf13 CrazyWolf13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TuroYT I fixed the env location for you.

Please check if build works

@CrazyWolf13 CrazyWolf13 requested review from MickLesk and michelroegl-brunner and removed request for MickLesk and michelroegl-brunner November 3, 2025 15:24
@michelroegl-brunner michelroegl-brunner merged commit 5db13eb into community-scripts:main Nov 3, 2025
1 check passed
@TuroYT
Copy link
Contributor Author

TuroYT commented Nov 3, 2025

@CrazyWolf13 the build dont work with the snowshare.env

when npx prisma migrate deploy :

error: Environment variable not found: DATABASE_URL.
  -->  prisma/schema.prisma:14
   | 
13 |   provider = "postgresql"
14 |   url      = env("DATABASE_URL")
   | 

Validation Error Count: 1
[Context: getConfig]

@TuroYT TuroYT mentioned this pull request Nov 3, 2025
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants